export default {
    mounted () {
        if(this.option.tooltip){
            this.option.tooltip.formatter = this.formatter
        }
        this.initEchartMap();
        window.addEventListener("resize", this.chartResize());
    },

    beforeDestroy () {
        window.removeEventListener("resize", this.chartResize());
    },


    methods: {
        chartResize () {
            this.myChart.resize();
        },
    }
}